import tkinter
win=tkinter.Tk()

win.title("中国工商银行系统")

win.geometry("400x400+200+100")#长字母（x）宽  距屏幕左侧位置  距屏幕上边位置

label=tkinter.Label(win,text="good",bg="blue")
labe2=tkinter.Label(win,text="nice",bg="yellow")
labe3=tkinter.Label(win,text="cool",bg="green")


#绝对布局  窗口变化对位置没有影响
label.place(x=10,y=10)
labe2.place(x=50,y=60)
labe3.place(x=100,y=100)

def func(event):
    print(event.x,event.y)#在小控件中的x y

#button-1 鼠标左键
#button-3 鼠标右键

#单击
button1=tkinter.Button(win,text="leftmouse button")
button1.bind("<Button-1>",func)
button1.pack()
def func1(event):
    print(event.x,event.y)#在小控件中x，y




button2=tkinter.Button(win,text="DOUBLE")
#双击
def func2(event):
    print(event.x,event.y)#在小控件中x，y
button2.bind("<Double-Button-1>",func2)#绑定事件
button2.pack()


#三击
button3=tkinter.Button(win,text="Triple-button")
def func3(event):
    print(event.x,event.y)#在小控件中x，y
button3.bind("<Triple-Button-1>",func3)
button3.pack()






win.mainloop()